﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CoolCode.Linq;

namespace CoolCode.Services
{
    public interface ISearchService<T>
    {
        PaginatedList<T> Paging(IQueryBuilder<T> queryBuilder, PageParam p);
        List<T> List(IQueryBuilder<T> queryBuilder);
    }

    public interface ISearchService<TResult, TSearch>
    {
        PaginatedList<TResult> Paging(IQueryBuilder<TSearch> queryBuilder, PageParam p);
        //List<TResult> List(IQueryBuilder<TSearch> queryBuilder);
    }
}
